<!--<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>      -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<?php
include_once("PHP/savedPostGetter.php");
?>
<html>
<head>
    <link rel="stylesheet" type="text/css" href="Css/index.css" />
	<link rel="stylesheet" href="fancybox/source/jquery.fancybox.css?v=2.1.4" type="text/css" media="screen" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/accountpage.js"></script>
	<script type="text/javascript" src="fancybox/source/jquery.fancybox.js"></script>
	<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script>
	<script src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/sha256.js"></script>
</head>
<body id="pageBody">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<div id="bannerHolder">
    <div id="pageHead">
        <h1 id="Logo">
            <a href="index.php">SuperScraper</a>
        </h1>
        <div id="searchBar">
            <form rel="async" >
                <input type="hidden" name="dff_view" value="grid">
                <input type="text" name="search_field" size="45" maxlength="50"><input type="button" value="Clear">
            </form>
        </div>
        <div id="rfloat">
			 <u1 id="account">
                <a id="backtoHome" href="index.php" style="color:white;">
                    Back to Home
                </a>
            </u1>
        </div>
    </div>

</div>
    <div id="globalContainer" class="uiContextualLayerParent">
          <div id="content" class="page_content">
            <div id="mainContainer">
             <div id="contentCol" class="mainLayout">
                 <div id="leftColContainer">
                     <div id="leftCo" role="complementary">
                         <a id="ad"></a>
                     </div>
                 </div>
                 <div id="contentArea" role="main">

                 <div id = "mainResults">
                     <table id="listingTable">
                         <tr id="listingTableHead">
                            <th id="listerHead">
                                Post
                            </th>
                             <th id="listerImage">
                                Image
                             </th>
                         </tr>
                         <tbody id="listingTableBody">
						 <?php 
							$savedPosts = new SavedPostGetter();
							$i=0;
							while ($i<count($savedPosts->posts)) { 
								$post = $savedPosts->posts[$i];
							?>
								 <tr class=<?php echo $post['Parent'] . "_post";?>>
									 <td><a href=<?php echo $post['URL']; ?> class="replylink"><?php echo  $post['Content'];?></a></td>
									 <td><a class="thumbnail" href=<?php echo $post['Image']; ?> ><img src=<?php echo $post['Image']; ?> width="70" height="70" alt=""></a></td>
								 </tr>
                         <?php 
								$i++;
							} ?>
                         </tbody>
                     </table>
                 </div>
                 </div>

             </div>
            </div>
          </div>
    </div>

</body>



</html>